package com.myBlog.service;

import com.myBlog.domain.ResponseResult;
import com.myBlog.domain.entity.User;
import com.myBlog.domain.vo.AdminUserInfoVO;
import com.myBlog.domain.vo.RoutersVo;

public interface LoginService {
    /**
     * 用户登录
     * @param user
     * @return
     */
    ResponseResult login(User user);


    /**
     * 获取用户信息
     * @return
     */
    ResponseResult<AdminUserInfoVO> getInfo();


    /**
     * 获取路由
     * @return
     */
    ResponseResult<RoutersVo> getRouters();

    /**
     * 退出登录
     * @return
     */
    ResponseResult logout();
}
